import React from 'react'
import Row from "./row";


export default class Board extends React.Component{
    render() {
        const {data,coord} = this.props
        return (
            <div className="board">
                    {
                        data.map((item,index) =>{
                            // console.log(index)
                            //循环行
                           return (<Row col={index} data={item} coord1={coord}/>)}
                        )
                    }

            </div>
        )
    }
}